#ifndef __LOG_H__
#define __LOG_H__


#ifdef DEBUG
#define log_debug	_log_debug
#else
#define log_debug
#endif


struct log_s;

#ifdef __cplusplus
extern "C" {
#endif
struct log_s    *log_open( const char *fn );
void	log_close( struct log_s	*log );

void    log_alert( struct log_s *log, const char *fmt, ... );
void    log_error( struct log_s *log, const char *fmt, ... );
void    log_warn( struct log_s *log, const char *fmt, ... );
void    log_info( struct log_s *log, const char *fmt, ... );
void    _log_debug( struct log_s *log, const char *fmt, ... );


#ifdef __cplusplus
} /* end of extern "C" */
#endif



#endif
